package com.cxs.rdbdemo;

import com.cxs.rdbdemo.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {

    String[] permissions = new String[]{
            "ohos.permission.DISTRIBUTED_DATASYNC"
    };


    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());

        requestPermissionsFromUser(permissions, 0);

    }
}
